CODE_PATH=/Users/mac/gitee/produce/produce-service
LOG_PATH=/Users/mac/gitee/log/

cd $CODE_PATH

sudo kill -9 `ps -ef | grep produce-service-0.0.1-SNAPSHOT.jar  | tr -s ' ' | awk -F' ' '{print $2}'`


mvn clean package -Dmaven.test.skip=true


nohup java -javaagent:/Users/mac/gitee/skywalking/apache-skywalking-apm-incubating/agent/skywalking-agent.jar -Dskywalking.collector.backend_service=127.0.0.1:11800 -Dskywalking.agent.application_code=produce-service -jar target/produce-service-0.0.1-SNAPSHOT.jar  --spring.profiles.active=dev > $LOG_PATH/produceservice.log 2>&1 &



# nohup java -jar produce-service-0.0.1-SNAPSHOT.jar  > $LOG_PATH/produceservice.log &

echo "start produce-service success"


